package org.pp.mapper;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import org.apache.ibatis.annotations.Param;
import org.pp.admin.dto.PpGoodsPage;
import org.pp.entity.PpGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.pp.vo.AdminGoodsVo;

import java.util.List;

/**
 * <p>
 * 商品 Mapper 接口
 * </p>
 *
 * @author haima
 * @since 2024-06-02
 */
@Mapper
public interface PpGoodsMapper extends BaseMapper<PpGoods> {

    List<AdminGoodsVo> getPageList(PpGoodsPage page);

    List<PpGoods> getGoodsByCateId(@Param("cateId") Long cateId);

    List<PpGoods> search(@Param("key") String key, @Param("orderItems") List<OrderItem> orderItems);
}
